<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>箭头函数</title>
    <script>
        const fn1 = (a, b) => a + b;
        const fn2 = () => 3.14;
        const fn3 = a => a * a;
        const fn4 = (a, b) => {
            console.log(6);
            return a * b;
        }
        const fn5 = () => ({ name: "lisi" })
        const fn6 = () => {
            // return arguments;
            return this;
        }
        console.log(fn1(1, 2), fn2(), fn3(12));
        console.log(fn4(1, 2), fn5());
        console.log(fn6());
    </script>
</head>

<body>

</body>

</html>